<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>BFC测试</title>


    <style>
        .box{
            width: 300px;
            height: 100px;
            background-color: blueviolet;
            margin: 50px;
        }

        .container{
            overflow: hidden;
        }
    </style>

</head>

<body>
    

    <div class="box"></div>
    <div class="container">
        <div class="box"></div>
    </div>

</body>

</html>